line=input()
words=line.split()
word_count={}
for word in words:
    if word not in word_count:    
        word_count[word]=1
    else:    
        word_count[word]+=1
print(word_count,end="")
